/**
 * 
 */   
package com.cares.core.base.dao;  
/**   
 * @作者 Stone
 * @创建日期 2013-6-18 下午01:59:59
 * @版本 V1.0
 * @类说明
 */
/**
 * @author Administrator
 *
 */

import java.io.Serializable;
import java.util.List;

import com.cares.core.base.exception.ApplyException;
import com.cares.entity.base.PageModel;


public interface BaseDao<T> {
	T get(Long id);
	T get(Serializable id);
    void save(T entity) throws ApplyException;
    void update(T entity) throws ApplyException;
    void delete(T entity) throws ApplyException;
    void delete(Long id) throws ApplyException;
    List<T> getAll();
    List<T> getAll(PageModel<T> pageModel);
    int count();
    int count(PageModel<T> pageModel);
}
